package dao

import (
	"gift/global"
	"gift/internal/model"
)

func FindPhone(phone string) model.Users {
	var result model.Users
	err := global.DB.Where("phone=?", phone).Find(&result).Error
	if err != nil {
		return model.Users{}
	}
	return result
}
